package com.aisino.inveli.vinda.task;

import com.aisino.inveli.vinda.entity.InvEliInfo;
import com.aisino.inveli.vinda.service.InvEliService;
import com.aisinogd.fp.dzfp.companyinterface.hessian.pojo.ReturnElectronice;
import javafx.concurrent.Task;

/**
 * @author leifeng
 * @Date 2017-11-21
 **/
public class InvEliTask extends Task<ReturnElectronice>{

    private InvEliInfo info;
    private InvEliService invEliService;

    public InvEliTask(InvEliInfo info, InvEliService invEliService) {
        this.info = info;
        this.invEliService = invEliService;
    }

    @Override
    protected ReturnElectronice call() throws Exception {
        ReturnElectronice returnElectronice = invEliService.InvEli(info);
        return returnElectronice;
    }
}
